package com.bolang.onlycode.demo.designPatterns.Strategy;

import java.math.BigDecimal;

public class AdvancedMember implements  Member{
    @Override
    public BigDecimal calPrice(BigDecimal bookPrice) {
        System.out.println("对于中级会员的折扣为20%");
        return bookPrice.multiply(new BigDecimal("0.8"));
    }
}
